export const INDEX_ROUTE = 'index'
export const HOME_ROUTE = 'home'
export const PRODUCT_MANAGE = 'productManage'
export const PRODUCT_CATEGORY_ROUTE = 'productCategory'
export const PRODUCT_ADD_OR_UPDATE_ROUTE = 'productAddOrUpdate'
export const PRODUCT_UPDATE_ROUTE = 'productUpdate'
export const PRODUCT_MANAGE_ROUTE = 'productManage'
export const ORDER_MANAGE_ROUTE = 'orderManage'
export const MANAGER_MANAGE = 'managerManage'
export const ALLOW_MAILS_ROUTE = 'allowMails'
export const AUTHORITY_ROUTE = 'authority'
export const MY_ROUTE = 'my'
export const LIU_ROUTE = 'liu'

export default {
    name: INDEX_ROUTE,
    path: INDEX_ROUTE,
    component: () => import('@/views/index/index.vue'),
    children: [
        {
            name: HOME_ROUTE,
            path: HOME_ROUTE,
            component: () => import('@/views/index/home/Home.vue'),
            meta: {
                title: '首页'
            }
        },
        {
            name: PRODUCT_CATEGORY_ROUTE,
            path: PRODUCT_CATEGORY_ROUTE,
            component: () => import('@/views/index/product/ProductCategory.vue'),
            meta: {
                title: '商品分类'
            }
        },
        {
            name: PRODUCT_ADD_OR_UPDATE_ROUTE,
            path: PRODUCT_ADD_OR_UPDATE_ROUTE,
            component: () => import('@/views/index/product/AddOrUpdateProduct.vue'),
            meta: {
                title: '新增商品'
            }
        },
        {
            name: PRODUCT_UPDATE_ROUTE,
            path: PRODUCT_UPDATE_ROUTE,
            component: () => import('@/views/index/product/UpdateProduct.vue'),
            meta: {
                title: '商品信息修改'
            }
        },
        {
            name: PRODUCT_MANAGE_ROUTE,
            path: PRODUCT_MANAGE_ROUTE,
            component: () => import('@/views/index/product/ProductManage.vue'),
            meta: {
                title: '商品管理'
            }
        },
        {
            name: ORDER_MANAGE_ROUTE,
            path: ORDER_MANAGE_ROUTE,
            component: () => import('@/views/index/order/Order.vue'),
            meta: {
                title: '订单管理'
            }
        },
        {
            name: ALLOW_MAILS_ROUTE,
            path: ALLOW_MAILS_ROUTE,
            component: () => import('@/views/index/manager/AllowMails.vue'),
            meta: {
                title: '邮箱管理'
            }
        },
        {
            name: AUTHORITY_ROUTE,
            path: AUTHORITY_ROUTE,
            component: () => import('@/views/index/manager/Authority.vue'),
            meta: {
                title: '权限管理'
            }
        },
        {
            name: MY_ROUTE,
            path: MY_ROUTE,
            component: () => import('@/views/index/my/My.vue'),
            meta: {
                title: '个人中心'
            }
        },
        {
            name: LIU_ROUTE,
            path: LIU_ROUTE,
            component: () => import('@/views/index/liu/Liu.vue'),
            meta: {
                title: '用户留言管理'
            }
        }
    ]
}